package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import com.bbs.chrysler.channel.ChannelDTO;

public final class configChannels_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.Vector _jspx_dependants;

  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_forEach_var_items;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_out_value_nobody;

  public java.util.List getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _jspx_tagPool_c_forEach_var_items = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _jspx_tagPool_c_out_value_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
  }

  public void _jspDestroy() {
    _jspx_tagPool_c_forEach_var_items.release();
    _jspx_tagPool_c_out_value_nobody.release();
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html; charset=GBK");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n\r\n\r\n\r\n<html>\r\n  <head>\r\n    <title>\r\n      listAllChannels\r\n    </title>\r\n    <link rel=\"stylesheet\" type=\"text/css\" id=\"css\" href=\"css/style_10.css\">\r\n      <script type=\"\">\r\n      function addChannel()\r\n      {\r\n        URL = \"/bbs/newChannel.htm\";\r\n        window.open(URL,\"修改频道信息\",\"width=400,height=400,left=300,top=150,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no\");\r\n      }\r\n      function showChannelDetail(CHANNEL_ID)\r\n      {\r\n        URL = \"/bbs/channelservlet?op=getOneChannelDetail&channelID=\" + CHANNEL_ID;\r\n        window.open(URL,\"修改频道信息\",\"width=400,height=400,left=300,top=150,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no\");\r\n      }\r\n\r\n      function deleteChannel(CHANNEL_ID)\r\n      {\r\n        if(confirm(\"频道删除会导致该频道下所有帖子被删除，并且无法回复。您真的要删除该频道么？\"))\r\n        {\r\n          URL = \"/bbs/channelservlet?op=deleteChannel&channelID=\" + CHANNEL_ID;\r\n          window.location.href = URL;\r\n        }\r\n      }\r\n      </script>\r\n    </head>\r\n    <body bgcolor=\"#ffffff\">\r\n");
      out.write("      <div class=\"mainborder\" id=\"jsmenu_parent\"></div>\r\n      <div class=\"mainheader\">\r\n        <div class=\"logo\">\r\n          <div class=\"maintable\">\r\n            <div align=\"left\"></div>\r\n          </div>\r\n        </div>\r\n      </div>\r\n      <div class=\"maintable\">\r\n        <div class=\"spaceborder\" style=\"width: 100%;\">\r\n\r\n\r\n        <table width=\"100%\" style=\"background: rgb(217, 217, 217) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;\" border=\"0\" cellpadding=\"4\" cellspacing=\"1\" >\r\n          <tr>\r\n            <td colspan=\"3\" align=\"center\">\r\n              <input type=\"button\" value=\"添    加\" onclick=\"addChannel();\" class=\"button\" />\r\n            </td>\r\n          </tr>\r\n          <tr>\r\n            <td width=\"20%\" align=\"center\"  class=\"altbg1\" style=\"padding-left: 20px;\">\r\n              <div class=\"subtable\" style=\"padding: 0px;\" align=\"center\">\r\n                频道\r\n              </div>\r\n            </td>\r\n            <td width=\"60%\" class=\"altbg1\" style=\"padding-left: 20px;\" align=\"center\">频道描述</td>\r\n");
      out.write("            <td class=\"altbg1\" style=\"padding-left: 20px;\" align=\"center\">操作</td>\r\n          </tr>\r\n          ");
      if (_jspx_meth_c_forEach_0(_jspx_page_context))
        return;
      out.write("\r\n        </table>\r\n        </div>\r\n        </div>\r\n\r\n        <div class=\"mainborder\"></div>\r\n      </body>\r\n    </html>\r\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }

  private boolean _jspx_meth_c_forEach_0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  c:forEach
    org.apache.taglibs.standard.tag.rt.core.ForEachTag _jspx_th_c_forEach_0 = (org.apache.taglibs.standard.tag.rt.core.ForEachTag) _jspx_tagPool_c_forEach_var_items.get(org.apache.taglibs.standard.tag.rt.core.ForEachTag.class);
    _jspx_th_c_forEach_0.setPageContext(_jspx_page_context);
    _jspx_th_c_forEach_0.setParent(null);
    _jspx_th_c_forEach_0.setVar("channel");
    _jspx_th_c_forEach_0.setItems((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${allChannels}", java.lang.Object.class, (PageContext)_jspx_page_context, null, false));
    int[] _jspx_push_body_count_c_forEach_0 = new int[] { 0 };
    try {
      int _jspx_eval_c_forEach_0 = _jspx_th_c_forEach_0.doStartTag();
      if (_jspx_eval_c_forEach_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
          out.write("\r\n            <tr>\r\n              <td height=\"40\" style=\"background-color: rgb(240, 240, 240);\" class=\"altbg2\" onmouseover=\"this.style.backgroundColor='#E1E1E1'\" onmouseout=\"this.style.backgroundColor='#F0F0F0'\" >\r\n                ");
          if (_jspx_meth_c_out_0(_jspx_th_c_forEach_0, _jspx_page_context, _jspx_push_body_count_c_forEach_0))
            return true;
          out.write("\r\n              </td>\r\n              <td class=\"altbg2\">");
          if (_jspx_meth_c_out_1(_jspx_th_c_forEach_0, _jspx_page_context, _jspx_push_body_count_c_forEach_0))
            return true;
          out.write("</td>\r\n              <td align=\"center\" class=\"altbg2\">\r\n                <input type=\"button\" value=\"修改\" onclick=\"showChannelDetail(");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${channel.channelID}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
          out.write(");\" class=\"button\" />\r\n                <input type=\"button\" value=\"删除\" onclick=\"deleteChannel(");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${channel.channelID}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
          out.write(");\"  class=\"button\" />\r\n              </td>\r\n            </tr>\r\n          ");
          int evalDoAfterBody = _jspx_th_c_forEach_0.doAfterBody();
          if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
            break;
        } while (true);
      }
      if (_jspx_th_c_forEach_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
        return true;
    } catch (Throwable _jspx_exception) {
      while (_jspx_push_body_count_c_forEach_0[0]-- > 0)
        out = _jspx_page_context.popBody();
      _jspx_th_c_forEach_0.doCatch(_jspx_exception);
    } finally {
      _jspx_th_c_forEach_0.doFinally();
      _jspx_tagPool_c_forEach_var_items.reuse(_jspx_th_c_forEach_0);
    }
    return false;
  }

  private boolean _jspx_meth_c_out_0(javax.servlet.jsp.tagext.JspTag _jspx_th_c_forEach_0, PageContext _jspx_page_context, int[] _jspx_push_body_count_c_forEach_0)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  c:out
    org.apache.taglibs.standard.tag.rt.core.OutTag _jspx_th_c_out_0 = (org.apache.taglibs.standard.tag.rt.core.OutTag) _jspx_tagPool_c_out_value_nobody.get(org.apache.taglibs.standard.tag.rt.core.OutTag.class);
    _jspx_th_c_out_0.setPageContext(_jspx_page_context);
    _jspx_th_c_out_0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_forEach_0);
    _jspx_th_c_out_0.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${channel.channelName}", java.lang.Object.class, (PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_out_0 = _jspx_th_c_out_0.doStartTag();
    if (_jspx_th_c_out_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return true;
    _jspx_tagPool_c_out_value_nobody.reuse(_jspx_th_c_out_0);
    return false;
  }

  private boolean _jspx_meth_c_out_1(javax.servlet.jsp.tagext.JspTag _jspx_th_c_forEach_0, PageContext _jspx_page_context, int[] _jspx_push_body_count_c_forEach_0)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  c:out
    org.apache.taglibs.standard.tag.rt.core.OutTag _jspx_th_c_out_1 = (org.apache.taglibs.standard.tag.rt.core.OutTag) _jspx_tagPool_c_out_value_nobody.get(org.apache.taglibs.standard.tag.rt.core.OutTag.class);
    _jspx_th_c_out_1.setPageContext(_jspx_page_context);
    _jspx_th_c_out_1.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_forEach_0);
    _jspx_th_c_out_1.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${channel.description}", java.lang.Object.class, (PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_out_1 = _jspx_th_c_out_1.doStartTag();
    if (_jspx_th_c_out_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return true;
    _jspx_tagPool_c_out_value_nobody.reuse(_jspx_th_c_out_1);
    return false;
  }
}
